 
<#include "/common/pager_style/commonList.ftl" encoding="UTF-8">
<#if isLeader="1">
<#assign buttonsName={"myList":"刷新","review":"审核","print":"excel导出","back":"返回"}>
<#else>
<#assign buttonsName={"list":"刷新","back":"返回"}>
</#if>
<#assign buttonsImage = {"review":"detail.gif","myList":"list.gif"}>

<script language="JavaScript">
<!--
var actName="weekReviewAction";
var domainName="weekReview";
	function demo()	{
		//此方法为用户自定义的操作行为
	}

$(function(){
	
	if($("#isSuccess").val()=="1"){
		var message ="审核成功！";
		showMessage(message);
	}
	if($("#isSuccess").val()=="2"){
		var message ="不同意签发，事项将被退回管理员！";
		showMessage(message);
	}
	if($("#isSuccess").val()=="3"){
		var message ="审核成功！";
		showMessage(message);
	}
});

function showMessage(message){
			art.dialog({
			    title: '审核',
			    content: message,
			    lock: true,
			    ok: function(){
			    },
			    cancel:false
			});
		$("#isSuccess").val("");
}

function opt_myList(){
<#if isLeader="1">
	$("form").eq(0).attr("action",actName + '!reviewList.shtml');
<#else>
	$("form").eq(0).attr("action",actName + '!myReviewList.shtml');
</#if>
	$("form").eq(0).submit();
}

function opt_modify(ids) {
	var formAction=$("form").eq(0).attr("action");
	$("#clickId").val(ids);
	$("form").eq(0).attr("action",actName + '!review.shtml');
	$("form").eq(0).submit();
}

function opt_review(){
	if($(":checkbox[name=idKeys]:checked").length>1){
		alert("只能选择一条数据！");
		return;
	}
	if($(":checkbox[name=idKeys]:checked").length==0){
		alert("请先选择一条数据！");
		return;
	}
	$("form").eq(0).attr("action",actName + '!review.shtml');
	$("form").eq(0).submit();
}
function opt_print(){
	var oldAction = $("form").eq(0).attr("action");
	document.forms[0].action='deptDocReviewAction!exportExecl.shtml';
	document.forms[0].submit();
	document.forms[0].action=oldAction;	
}
//-->
</script>
</head>
<body  scroll="auto" class="jqList breadcrumb-fixed">
	<#if isLeader="1">
	<form name="form1" action="weekReviewAction!reviewList.shtml" method="post" class="form-horizontal">
	<#else>
	<form name="form1" action="weekReviewAction!myReviewList.shtml" method="post" class="form-horizontal">
	</#if>
		<input type="hidden" name="id" id="id" value="">
		<input type="hidden" name="weekReview.id" id="weekReview.id" value="">
		<input type="hidden" name="clickId" id="clickId" value="">
		<input type="hidden" name="isSuccess" id="isSuccess" value="${(isSuccess)?if_exists}">
		<input type="hidden" name="isLeader" id="isLeader" value="${(isLeader)?if_exists}">
		<#--input type="hidden" name="weekReview.reviewType" id="weekReview.reviewType" value="延期审核"/-->
		<input type="hidden" name="domainFileName" id="domainFileName" value="${(domainFileName)?if_exists}"/>
		<input type="hidden" name="propConfigName" id="propConfigName" value="${(propConfigName)?if_exists}"/>
		<div id="mainDiv">
			<div id="topDiv">
				<#-- 生成按钮及表格数据 -->
				<#include "/common/pager_style/pageButtons.ftl" encoding="UTF-8">
			</div><!-- end #topDiv -->
			<div id="centerDiv">
			<#if listState?exists && listState=="query">
			<#else>
				<div id="selectButton" height="98%">
					<fieldSet>
						<legend class="icon_warning">筛选条件</legend>
						<#if isLeader=="1">
							<@pEdit.pageEditText
								label="标题："
								pageState="modify"
								TR="false"
								TD="false"
								cssStyle="width:10%;"
								attName="filter_LIKES_a@weekRecord@title"
								attValue="${(filter_LIKES_a@weekRecord@title)?if_exists}"
							/>
							<@pEdit.pageEditText
								label="发文单位："
								pageState="modify"
								TR="false"
								TD="false"
								cssStyle="width:10%;"
								attName="filter_LIKES_a@weekRecord@lwUnit@name"
								attValue="${(filter_LIKES_a@weekRecord@lwUnit@name)?if_exists}"
							/>
							<@pEdit.pageEditText
								label="主办单位："
								pageState="modify"
								TR="false"
								TD="false"
								cssStyle="width:10%;"
								attName="filter_LIKES_a@weekRecord@swUnit@name"
								attValue="${(filter_LIKES_a@weekRecord@swUnit@name)?if_exists}"
							/>
							<@pEdit.pageEditSelectUserValue
								label="审核类型："
								pageState="modify"
								TR="false"
								TD="false"
								attName="filter_LIKES_a@applyType"
								attValue="${(filter_LIKES_a@applyType)?if_exists}"
								optionSource={"延期审核":"延期审核","不同意件审核":"不同意件审核"}
							/>
						<#else>
							<@pEdit.pageEditText
								label="标题："
								pageState="modify"
								TR="false"
								TD="false"
								cssStyle="width:10%;"
								attName="title"
								attValue="${(title)?if_exists}"
							/>
							<@pEdit.pageEditText
								label="发文单位："
								pageState="modify"
								TR="false"
								TD="false"
								cssStyle="width:10%;"
								attName="lwUnitName"
								attValue="${(lwUnitName)?if_exists}"
							/>
							<@pEdit.pageEditText
								label="主办单位："
								pageState="modify"
								TR="false"
								TD="false"
								cssStyle="width:10%;"
								attName="receiveUnitName"
								attValue="${(receiveUnitName)?if_exists}"
							/>
							<@pEdit.pageEditSelectUserValue
								label="审核类型："
								pageState="modify"
								TR="false"
								TD="false"
								attName="reviewType"
								attValue="${(reviewType)?if_exists}"
								optionSource={"延期审核":"延期审核","不同意件审核":"不同意件审核"}
							/>
						</#if>
					  	<input type="button" value="&nbsp;&nbsp;检&nbsp;&nbsp;索&nbsp;&nbsp;" onclick="do_filter();return false;">
					</fieldSet>
				</div>
			</#if>
				<div id="body">
					<!--	开始生成页面数据表格	-->
					<#import "/common/pager_style/pager.ftl" as comPager><#-- 生成列表页面的ftl模板文件	 -->
						<@comPager.pager page=(page)?if_exists title="" skin=skin/>
					<!--	页面数据表格生成结束	-->
				</div><!-- end #body -->
			</div><!-- end #centerDiv -->
		</div><!-- end #mainDiv -->
	</form>
</body>
</html>